RewriteEngine On
RewriteBase /docs/

RewriteRule ^(.*\.[htmlp]+)$ doc.php?page=$1 [QSA,L]
